# Maintainer: Jakub Skrzypnik <j.skrzypnik@openmailbox.org>
pkgname=kakoune
pkgver=2020.01.16
pkgrel=0
pkgdesc="Code editor heavily inspired by Vim, but with less keystrokes"
url="http://kakoune.org"
arch="all"
license="Unlicense"
makedepends="ncurses-dev asciidoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mawww/kakoune/archive/v$pkgver.tar.gz
	alpine-linux.kak
	"

builddir="$srcdir/$pkgname-$pkgver/src"
build() {
	make debug=no
}

check() {
	make check
}

package() {
	make PREFIX="/usr" DESTDIR="$pkgdir/" debug=no install
	install -Dm644 $srcdir/alpine-linux.kak $pkgdir/usr/share/kak/autoload/filetype/
}

sha512sums="81a0fb522fd7f289ede36f966e815d03550df389b05d27fa430474dd55a90cc0e1c5231e660328040f3bd79d155d37b7b135b52b93cee536c15d13fc9d06baa0  kakoune-2020.01.16.tar.gz
c5b11dc28adf785b4e83637fe1d5c9db334616d2d3f6c667823745e273f739c57d0d408b9bec8a65210e3c7ccb80a5b488ebbb3c0c5de8bdec13e1b4b4d02b77  alpine-linux.kak"
